package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class OperationLogArg {
    private String pk_name = "LOG_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<OperationLogCriteria> oredCriteria;

    public OperationLogArg() {
        oredCriteria = new ArrayList<OperationLogCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<OperationLogCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(OperationLogCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public OperationLogCriteria or() {
    	OperationLogCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public OperationLogCriteria createCriteria() {
    	OperationLogCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected OperationLogCriteria createCriteriaInternal() {
    	OperationLogCriteria criteria = new OperationLogCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<OperationLogCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<OperationLogCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<OperationLogCriterion> getAllCriteria() {
            return criteria;
        }

        public List<OperationLogCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new OperationLogCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new OperationLogCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new OperationLogCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new OperationLogCriterion(condition, value1, value2));
        }

        public OperationLogCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andLogIdIsNull() {
            addCriterion("LOG_ID is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdIsNotNull() {
            addCriterion("LOG_ID is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdEqualTo(Integer value) {
            addCriterion("LOG_ID =", value, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdNotEqualTo(Integer value) {
            addCriterion("LOG_ID <>", value, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdGreaterThan(Integer value) {
            addCriterion("LOG_ID >", value, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("LOG_ID >=", value, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdLessThan(Integer value) {
            addCriterion("LOG_ID <", value, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdLessThanOrEqualTo(Integer value) {
            addCriterion("LOG_ID <=", value, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdLike(Integer value) {
            addCriterion("LOG_ID like ", value, "LOG_ID", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdNotLike(Integer value) {
            addCriterion("LOG_ID  not like ", value, "LOG_ID", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdLeftLike(Integer value) {
            addCriterion("LOG_ID like ", value, "LOG_ID", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdNotLeftLike(Integer value) {
            addCriterion("LOG_ID  not like ", value, "LOG_ID", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdRightLike(Integer value) {
            addCriterion("LOG_ID like ", value, "LOG_ID", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdNotRightLike(Integer value) {
            addCriterion("LOG_ID  not like ", value, "LOG_ID", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdIn(List<Integer> values) {
            addCriterion("LOG_ID  in ", values, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdNotIn(List<Integer> values) {
            addCriterion("LOG_ID not in ", values, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdBetween(Integer value1, Integer value2) {
            addCriterion("LOG_ID between ", value1, value2, "LOG_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogIdNotBetween(Integer value1, Integer value2) {
            addCriterion("LOG_ID not between ", value1, value2, "LOG_ID");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andStaffIdIsNull() {
            addCriterion("STAFF_ID is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdIsNotNull() {
            addCriterion("STAFF_ID is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdEqualTo(Integer value) {
            addCriterion("STAFF_ID =", value, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("STAFF_ID <>", value, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdGreaterThan(Integer value) {
            addCriterion("STAFF_ID >", value, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID >=", value, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdLessThan(Integer value) {
            addCriterion("STAFF_ID <", value, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID <=", value, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdNotLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdLeftLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdNotLeftLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdRightLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdNotRightLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdIn(List<Integer> values) {
            addCriterion("STAFF_ID  in ", values, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("STAFF_ID not in ", values, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID between ", value1, value2, "STAFF_ID");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID not between ", value1, value2, "STAFF_ID");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andOpModuleIsNull() {
            addCriterion("OP_MODULE is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleIsNotNull() {
            addCriterion("OP_MODULE is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleEqualTo(String value) {
            addCriterion("OP_MODULE =", value, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleNotEqualTo(String value) {
            addCriterion("OP_MODULE <>", value, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleGreaterThan(String value) {
            addCriterion("OP_MODULE >", value, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleGreaterThanOrEqualTo(String value) {
            addCriterion("OP_MODULE >=", value, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleLessThan(String value) {
            addCriterion("OP_MODULE <", value, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleLessThanOrEqualTo(String value) {
            addCriterion("OP_MODULE <=", value, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleLike(String value) {
            addCriterion("OP_MODULE like ", value, "OP_MODULE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleNotLike(String value) {
            addCriterion("OP_MODULE  not like ", value, "OP_MODULE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleLeftLike(String value) {
            addCriterion("OP_MODULE like ", value, "OP_MODULE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleNotLeftLike(String value) {
            addCriterion("OP_MODULE  not like ", value, "OP_MODULE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleRightLike(String value) {
            addCriterion("OP_MODULE like ", value, "OP_MODULE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleNotRightLike(String value) {
            addCriterion("OP_MODULE  not like ", value, "OP_MODULE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleIn(List<String> values) {
            addCriterion("OP_MODULE  in ", values, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleNotIn(List<String> values) {
            addCriterion("OP_MODULE not in ", values, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleBetween(String value1, String value2) {
            addCriterion("OP_MODULE between ", value1, value2, "OP_MODULE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpModuleNotBetween(String value1, String value2) {
            addCriterion("OP_MODULE not between ", value1, value2, "OP_MODULE");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andOpTypeIsNull() {
            addCriterion("OP_TYPE is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeIsNotNull() {
            addCriterion("OP_TYPE is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeEqualTo(Integer value) {
            addCriterion("OP_TYPE =", value, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeNotEqualTo(Integer value) {
            addCriterion("OP_TYPE <>", value, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeGreaterThan(Integer value) {
            addCriterion("OP_TYPE >", value, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("OP_TYPE >=", value, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeLessThan(Integer value) {
            addCriterion("OP_TYPE <", value, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeLessThanOrEqualTo(Integer value) {
            addCriterion("OP_TYPE <=", value, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeLike(Integer value) {
            addCriterion("OP_TYPE like ", value, "OP_TYPE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeNotLike(Integer value) {
            addCriterion("OP_TYPE  not like ", value, "OP_TYPE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeLeftLike(Integer value) {
            addCriterion("OP_TYPE like ", value, "OP_TYPE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeNotLeftLike(Integer value) {
            addCriterion("OP_TYPE  not like ", value, "OP_TYPE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeRightLike(Integer value) {
            addCriterion("OP_TYPE like ", value, "OP_TYPE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeNotRightLike(Integer value) {
            addCriterion("OP_TYPE  not like ", value, "OP_TYPE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeIn(List<Integer> values) {
            addCriterion("OP_TYPE  in ", values, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeNotIn(List<Integer> values) {
            addCriterion("OP_TYPE not in ", values, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeBetween(Integer value1, Integer value2) {
            addCriterion("OP_TYPE between ", value1, value2, "OP_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("OP_TYPE not between ", value1, value2, "OP_TYPE");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andOpDescIsNull() {
            addCriterion("OP_DESC is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescIsNotNull() {
            addCriterion("OP_DESC is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescEqualTo(String value) {
            addCriterion("OP_DESC =", value, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescNotEqualTo(String value) {
            addCriterion("OP_DESC <>", value, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescGreaterThan(String value) {
            addCriterion("OP_DESC >", value, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescGreaterThanOrEqualTo(String value) {
            addCriterion("OP_DESC >=", value, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescLessThan(String value) {
            addCriterion("OP_DESC <", value, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescLessThanOrEqualTo(String value) {
            addCriterion("OP_DESC <=", value, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescLike(String value) {
            addCriterion("OP_DESC like ", value, "OP_DESC", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescNotLike(String value) {
            addCriterion("OP_DESC  not like ", value, "OP_DESC", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescLeftLike(String value) {
            addCriterion("OP_DESC like ", value, "OP_DESC", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescNotLeftLike(String value) {
            addCriterion("OP_DESC  not like ", value, "OP_DESC", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescRightLike(String value) {
            addCriterion("OP_DESC like ", value, "OP_DESC", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescNotRightLike(String value) {
            addCriterion("OP_DESC  not like ", value, "OP_DESC", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescIn(List<String> values) {
            addCriterion("OP_DESC  in ", values, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescNotIn(List<String> values) {
            addCriterion("OP_DESC not in ", values, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescBetween(String value1, String value2) {
            addCriterion("OP_DESC between ", value1, value2, "OP_DESC");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDescNotBetween(String value1, String value2) {
            addCriterion("OP_DESC not between ", value1, value2, "OP_DESC");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andOpDateIsNull() {
            addCriterion("OP_DATE is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateIsNotNull() {
            addCriterion("OP_DATE is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateEqualTo(String value) {
            addCriterion("OP_DATE =", value, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateNotEqualTo(String value) {
            addCriterion("OP_DATE <>", value, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateGreaterThan(String value) {
            addCriterion("OP_DATE >", value, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateGreaterThanOrEqualTo(String value) {
            addCriterion("OP_DATE >=", value, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateLessThan(String value) {
            addCriterion("OP_DATE <", value, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateLessThanOrEqualTo(String value) {
            addCriterion("OP_DATE <=", value, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateLike(String value) {
            addCriterion("OP_DATE like ", value, "OP_DATE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateNotLike(String value) {
            addCriterion("OP_DATE  not like ", value, "OP_DATE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateLeftLike(String value) {
            addCriterion("OP_DATE like ", value, "OP_DATE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateNotLeftLike(String value) {
            addCriterion("OP_DATE  not like ", value, "OP_DATE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateRightLike(String value) {
            addCriterion("OP_DATE like ", value, "OP_DATE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateNotRightLike(String value) {
            addCriterion("OP_DATE  not like ", value, "OP_DATE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateIn(List<String> values) {
            addCriterion("OP_DATE  in ", values, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateNotIn(List<String> values) {
            addCriterion("OP_DATE not in ", values, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateBetween(String value1, String value2) {
            addCriterion("OP_DATE between ", value1, value2, "OP_DATE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andOpDateNotBetween(String value1, String value2) {
            addCriterion("OP_DATE not between ", value1, value2, "OP_DATE");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andLogTypeIsNull() {
            addCriterion("LOG_TYPE is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeIsNotNull() {
            addCriterion("LOG_TYPE is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeEqualTo(Integer value) {
            addCriterion("LOG_TYPE =", value, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeNotEqualTo(Integer value) {
            addCriterion("LOG_TYPE <>", value, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeGreaterThan(Integer value) {
            addCriterion("LOG_TYPE >", value, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("LOG_TYPE >=", value, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeLessThan(Integer value) {
            addCriterion("LOG_TYPE <", value, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeLessThanOrEqualTo(Integer value) {
            addCriterion("LOG_TYPE <=", value, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeLike(Integer value) {
            addCriterion("LOG_TYPE like ", value, "LOG_TYPE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeNotLike(Integer value) {
            addCriterion("LOG_TYPE  not like ", value, "LOG_TYPE", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeLeftLike(Integer value) {
            addCriterion("LOG_TYPE like ", value, "LOG_TYPE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeNotLeftLike(Integer value) {
            addCriterion("LOG_TYPE  not like ", value, "LOG_TYPE", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeRightLike(Integer value) {
            addCriterion("LOG_TYPE like ", value, "LOG_TYPE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeNotRightLike(Integer value) {
            addCriterion("LOG_TYPE  not like ", value, "LOG_TYPE", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeIn(List<Integer> values) {
            addCriterion("LOG_TYPE  in ", values, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeNotIn(List<Integer> values) {
            addCriterion("LOG_TYPE not in ", values, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeBetween(Integer value1, Integer value2) {
            addCriterion("LOG_TYPE between ", value1, value2, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("LOG_TYPE not between ", value1, value2, "LOG_TYPE");
            return (OperationLogCriteria) this;
        }
        public OperationLogCriteria andLogLevelIsNull() {
            addCriterion("LOG_LEVEL is null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelIsNotNull() {
            addCriterion("LOG_LEVEL is not null");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelEqualTo(Integer value) {
            addCriterion("LOG_LEVEL =", value, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelNotEqualTo(Integer value) {
            addCriterion("LOG_LEVEL <>", value, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelGreaterThan(Integer value) {
            addCriterion("LOG_LEVEL >", value, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("LOG_LEVEL >=", value, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelLessThan(Integer value) {
            addCriterion("LOG_LEVEL <", value, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelLessThanOrEqualTo(Integer value) {
            addCriterion("LOG_LEVEL <=", value, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelLike(Integer value) {
            addCriterion("LOG_LEVEL like ", value, "LOG_LEVEL", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelNotLike(Integer value) {
            addCriterion("LOG_LEVEL  not like ", value, "LOG_LEVEL", 1);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelLeftLike(Integer value) {
            addCriterion("LOG_LEVEL like ", value, "LOG_LEVEL", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelNotLeftLike(Integer value) {
            addCriterion("LOG_LEVEL  not like ", value, "LOG_LEVEL", 0);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelRightLike(Integer value) {
            addCriterion("LOG_LEVEL like ", value, "LOG_LEVEL", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelNotRightLike(Integer value) {
            addCriterion("LOG_LEVEL  not like ", value, "LOG_LEVEL", 2);
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelIn(List<Integer> values) {
            addCriterion("LOG_LEVEL  in ", values, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelNotIn(List<Integer> values) {
            addCriterion("LOG_LEVEL not in ", values, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelBetween(Integer value1, Integer value2) {
            addCriterion("LOG_LEVEL between ", value1, value2, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

        public OperationLogCriteria andLogLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("LOG_LEVEL not between ", value1, value2, "LOG_LEVEL");
            return (OperationLogCriteria) this;
        }

    }

    public static class OperationLogCriteria extends GeneratedCriteria {

        protected OperationLogCriteria() {
            super();
        }
    }

    public static class OperationLogCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected OperationLogCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected OperationLogCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected OperationLogCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected OperationLogCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected OperationLogCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected OperationLogCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}